import { createRouter, createWebHistory } from 'vue-router'
import Login from '../pages/Login/index.vue'
import Mail from '../pages/Mail/index.vue'
import Config from '../pages/Config/index.vue'
const routes = [
  { path: '/', redirect: '/login' },
  {
    path: '/login',
    name: 'Login',
    component: Login
  },
  {
    path: '/mail',
    name: 'Mail',
    component: Mail
  },
  {
    path: '/config',
    name: 'config',
    component: Config
  },
  // 其他路由...
]
const router = createRouter({
  history: createWebHistory("/"),
  routes
})
export default router